package com.jack.design_patterns.creational.factory.simple_factory;

public class MainTest {

    public static void main(String[] args) {
        test1();
    }

    private static void test1() {
        WuLinFactory wuLinFactory = new WuLinFactory();
        AbstractCar van = wuLinFactory.createCar("van");
        AbstractCar mini = wuLinFactory.createCar("mini");
        van.run();
        mini.run();
    }
}
